﻿module Enferno.Public.Web.Components.Models {

    export class FileInfoModel {
        public url: string;
        public type: FileType;
        public altText: string;

        constructor(serverObject?: any) {
            if (serverObject != null) {
                this.url = serverObject.url;
                this.type = serverObject.type;
                this.altText = serverObject.altText;
            }
        }
    }

    export enum FileType {
        DefaultImage = 1,
        VariantImage = 2,
        Document = 6,
        EmbeddedVideo = 10,
        AdditionalImage = 11,
        ProductManual = 13,
        ExternalImage = 14,
        EnvironmentalImage = 15,
        InternalImage = 17,
        IllustrationOrSymbol = 18,
        Logotype = 19,
        DetailImage = 20,
        AlternateImage = 21,
        Text = 22,
        ModelInformationSalesText = 23,
        AssemblyInstruction = 24,
        FactSheet = 25,
        Broschure = 26,
        ExternalTrademark = 27,
        CareInstructions = 28,
        Symbols = 29,
        QualityDocument = 30,
        Illustration = 31,
        PackningInstruction = 32,
        DrawingUnderlay = 33,
        TestProtocol = 34,
        CutThrughImage = 35,
        PriceSheet = 36,
        DiscountFactSheet = 37,
        ProductCloseUp = 38,
        MultiProductImage = 39,
        InstallationImage = 40,
        MultiProductImageSerie = 41,
        MaterialSample = 42,
    }

} 